package com.fr.chicken.facade.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class BaseResponseDTO implements Serializable {

    private static final long serialVersionUID = -4449339634842128071L;


    @ApiModelProperty(value = "请求是否执行成功")
    private boolean success;
    @ApiModelProperty(value = "请求是否执行")
    private boolean execute;

    @ApiModelProperty(value = "响应信息")
    private String msg;


    public BaseResponseDTO() {
    }

    public void success() {
        this.success = true;
        this.execute = true;
    }

    public void faild() {
        this.success = false;
        this.execute = false;
    }


}
